﻿<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"/>
    <title> 信息展示</title>

    <link rel="icon" href="favicon.ico" type="image/ico">


    <meta name="author" content="yinqi">
    <link href="css/bootstrap.min.css" rel="stylesheet">
    <link href="css/materialdesignicons.min.css" rel="stylesheet">
    <link href="css/style.css" rel="stylesheet">
</head>

<body data-logobg="color_8" data-sidebarbg="color_8">
<div class="layout-web">
    <div class="layout-container" style="text-align: center">

        <!--页面主要内容-->
        <div class="container-fluid" width: 40%>
            <div class="col-md-6 col-sm-12" style="margin: 3% auto;float: none;">
                <div class="card" style="border-radius: 30px">
                    <div class="card-header" style="text-align: center;background-color:#D9E5DA;border-radius: 30px">
                        <h3 style="color: #2b542c;font-family: '楷体'">${commodity.gname}</h3></div>
                    <div class="card-body">
                        <form class="form-horizontal"
                              action="commoditylist.action" method="post"
                              style="background-color: #F2F2F2">
                            <div class="form-group">
                                <label class="col-xs-12">商品编号</label>
                                <div class="col-xs-12">
                                    <input class="form-control" type="text" id="gid"
                                           name="gid" value="${commodity.gid}" readonly="readonly"style="text-align: center">
                                </div>
                            </div>
                            <input type="hidden" name="type" value="2"/>
                            <div class="form-group">
                                <label class="col-xs-12">商品名称</label>
                                <div class="col-xs-12">
                                    <input class="form-control" type="text" id="gname"
                                           name="gname" value="${commodity.gname}" readonly="readonly"style="text-align: center">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-xs-12">价格</label>
                                <div class="col-xs-12">
                                    <input class="form-control" type="text" id="price"
                                           name="price" value="${commodity.price}" readonly="readonly"style="text-align: center">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-xs-12">系统版本</label>
                                <div class="col-xs-12">
                                    <input class="form-control" type="text" id="model"
                                           name="model" value="${commodity.model}" readonly="readonly"style="text-align: center">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-xs-12">生产日期</label>
                                <div class="col-xs-12">
                                    <input class="form-control" type="date" id="prddate"
                                           name="prddate" value="${commodity.prddate}" readonly="readonly"style="text-align: center">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-xs-12">供应商</label>
                                <div class="col-xs-12">
                                    <c:forEach var="sup" items="${list1}">
                                        <c:if test="${sup.supid==commodity.supid}">
                                            <input class="form-control" type="text" id="supid"
                                                   name="supid" value="${sup.supname}" readonly="readonly"style="text-align: center">
                                        </c:if>
                                    </c:forEach>

                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-xs-12">产品类型</label>
                                <div class="col-xs-12" >
                                    <c:forEach var="comm" items="${list2}">
                                        <c:if test="${comm.tyid==commodity.tyid}">
                                            <input class="form-control" type="text" id="tyid"
                                                   name="tyid" value="${comm.tyname}" readonly="readonly" style="text-align: center">
                                        </c:if>
                                    </c:forEach>
                                </div>
                            </div>

                            <div class="form-group">
                                <div class="col-xs-12" style="text-align: center;">
                                    <button class="btn btn-primary" type="submit"
                                            style="border-radius: 30px;font-family: '楷体';font-size: 17px;background-color: #D9E5DA;border: 0">
                                        返回
                                    </button>&nbsp;&nbsp;
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>

        <!--End 页面主要内容-->
    </div>
</div>

<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/perfect-scrollbar.min.js"></script>
<script type="text/javascript" src="js/main.js"></script>
</body>
</html>